﻿namespace TimeSaver
{
    using System.Windows;
    using Common.Base;

    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private MainController mainController;

        public MainWindow()
        {
            this.InitializeComponent();

            this.mainController = new MainController();
            this.mainController.ViewChanged += this.SetView;
            this.mainController.Initialize();
        }

        public void SetView(BaseView view)
        {
            this.Content = view;
        }
    }
}
